﻿using System;
using System.Collections.Generic;

namespace Blog.Types.Repository
{
    public interface IRepository
    {
        string BlogConnectionString { get; set; }
        string ApplicationConnectionString { get; set; }
        List<ITheme> GetThemes();
        ITheme GetTheme(int objId);
        int Save(int idTheme, Action<ITheme> setData);
        void DeleteTheme(int objId);
        List<IMessage> GetMessages(int idTheme);
        void DeleteMessage(int objId);
        int Save(int idTheme, int idMessage, Action<IMessage> setData, out int messageTreeId);
        List<ITheme> FindThemes(int startRowIndex, int pageSize, string text, bool findHeaders, bool findContext, out int endRow);
    }
}
